{include file='public:header-css'/}
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    {include file='public:left-menu'/}
    <!--End 左侧导航-->
    <!--头部信息-->
    {include file='public:nav-header' title="会员管理" subTitle="会员钱包"/}
    <!--End 头部信息-->

    <!--页面主要内容-->
    <main class="lyear-layout-content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="hint">
                <div class="hint-info">
                  <h5><i class="mdi mdi-help-circle-outline"></i>操作提示</h5>
                  <p>平台会员钱包列表</p>
                  <p class="text-red">添加后不可删除 请仔细核对填写</p>
                </div>
              </div>
              <div class="card-toolbar">
                <div class="toolbar-btn-action">
                    <a class="btn btn-label btn-theme" href="{:url('User/add_edit_wallet')}"><label><i class="mdi mdi-plus-box"></i></label> 添加钱包</a>
                </div>
                <div class="card-toolbar-center">
                  <a href="" class="table-btn btn-dark"><i class="mdi mdi-replay"></i></a>
                  <button class="table-btn btn-theme">共{$list->total()}条记录 当前第{$list->currentPage()}页</button>
                </div>
                <form class="table-form" method="post" action="">
                  <div class="table-form-group">
                    <input type="text" value="{$Request.param.name}" name="name"
                           placeholder="查询钱包名称">
                    <button class="btn btn-default" onclick="submit1()" type="button">搜索</button>
                  </div>
                </form>
              </div>
              <div class="card-body">
                <div class="table-responsive">
                  <table class="table table-bordered table-striped table-hover">
                    <thead>
                    <tr>
                      <th>
                        <label class="table-checkbox">
                          <input type="checkbox" id="check-all"><span></span>
                        </label>
                      </th>
                      <th>操作</th>
                      <th>ID</th>
                      <th>钱包名称</th>
                      <th>补贴比例</th>
                      <th>最小转赠</th>
                      <th>最大转赠</th>
                      <th>转赠系数</th>
                      <th>转赠手续费</th>
                      <th>最小交易</th>
                      <th>交易手续费</th>
                      <th>交易价格</th>
                      <th>创建时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {if $list->isEmpty()}
                    <tr>
                      <td class="no-data" colspan="50">
                        <i class="mdi mdi-alert-decagram"></i>没有符合条件的记录
                      </td>
                    </tr>
                    {else/}
                    {volist name="$list" id="vo"}
                    <tr>
                      <td>
                        <label class="table-checkbox">
                          <input type="checkbox" class="checkbox"
                                 value="{$vo[$vo.pk]}"><span></span>
                        </label>
                      </td>
                      <td>
                        <a class="table-btn btn-theme" href="{:url('User/add_edit_wallet',['id'=>$vo[$vo.pk]])}"><i class="mdi mdi-pencil"></i>编辑</a>
                      </td>
                      <td>{$vo[$vo.pk]}</td>
                      <td>{$vo.name}</td>
                      <td>{$vo.bt_bl}%</td>
                      <td>{$vo.g_min}</td>
                      <td>{$vo.g_max}</td>
                      <td>{$vo.g_xishu}</td>
                      <td>{$vo.g_sxf}%</td>
                      <td>{$vo.jy_min}</td>
                      <td>{$vo.jy_sxf}%</td>
                      <td>{$vo.jy_price}</td>
                        <td>{$vo.add_time}</td>
                    </tr>
                    {/volist}
                    {/if}
                    </tbody>
                  </table>
                </div>
                <!--分页-->
                <div class="page">
                  {$page|raw}
                </div>
              </div>
            </div>
          </div>

        </div>

      </div>

    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript">
  $(function(){
  });
  $(document).keyup(function(event){
    if(event.keyCode ==13){
      submit1();
    }
  });
  function submit1() {
      var url="{:url('User/wallet_index')}";
    $('.table-form').attr('action',url).submit();
  }
</script>
</body>
</html>
